home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer: Getting Started / Internet Surfer - Getting Started (Wayzata Technology)(7231)(1995).bin / pc / textfile / faqs / uucp_int < prev    next >
Encoding:
Internet Message Format  |  1995-01-01  |  53.1 KB

  1. Xref: bloom-picayune.mit.edu comp.mail.uucp:9809 news.answers:3989
  2. Path: bloom-picayune.mit.edu!snorkelwacker.mit.edu!news.media.mit.edu!micro-heart-of-gold.mit.edu!news.bbn.com!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!airs!ian
  3. From: ian@airs.com (Ian Lance Taylor)
  4. Newsgroups: comp.mail.uucp,news.answers
  5. Subject: UUCP Internals Frequently Asked Questions
  6. Keywords: UUCP, protocol, FAQ
  7. Message-ID: <uucp-internals_721560602@airs.com>
  8. Date: 12 Nov 92 09:30:11 GMT
  9. Expires: 24 Dec 92 09:30:02 GMT
  10. Sender: news@airs.com
  11. Reply-To: ian@airs.com (Ian Lance Taylor)
  12. Followup-To: comp.mail.uucp
  13. Lines: 1187
  14. Approved: news-answers-request@MIT.Edu
  15. Supersedes: <uucp-internals_719137803@airs.com>
  16.  
  17. Archive-name: uucp-internals
  18. Version: $Revision: 1.10 $
  19. Last-modified: $Date: 1992/10/22 03:55:21 $
  20.  
  21.  This article was written by Ian Lance Taylor <ian@airs.com> and I may
  22.  even update it periodically.  Please send me mail about suggestions
  23.  or inaccuracies.
  24.  
  25.  This article describes how the various UUCP protocols work, and
  26.  discusses some other internal UUCP issues.  It does not describe how
  27.  to configure UUCP, nor how to solve UUCP connection problems, nor how
  28.  to deal with UUCP mail.  There are currently no FAQ postings on any
  29.  of these topics, and I do not plan to write any.
  30.  
  31.  If you haven't read the news.announce.newusers articles, read them.
  32.  
  33.  This article is in digest format.  Some newsreaders will be able to
  34.  break it apart into separate articles.  Please don't ask me how to do
  35.  this, though.
  36.  
  37.  This article answers the following questions.  If one of these
  38.  questions is posted to comp.mail.uucp, please send mail to the poster
  39.  referring her or him to this FAQ.  There is no reason to post a
  40.  followup, as most of us know the answer already.
  41.  
  42. Sources
  43. What does "alarm" mean in debugging output?
  44. What are UUCP grades?
  45. What is the format of a UUCP lock file?
  46. What is the format of a UUCP X.* files?
  47. What is the UUCP protocol?
  48. What is the 'g' protocol?
  49. What is the 'f' protocol?
  50. What is the 't' protocol?
  51. What is the 'e' protocol?
  52. What is the 'G' protocol?
  53. What is the 'x' protocol?
  54. What is the 'd' protocol?
  55. What is the 'h' protocol?
  56. Thanks
  57.  
  58. ----------------------------------------------------------------------
  59.  
  60. From: Sources
  61. Subject: Sources
  62.  
  63. I took a lot of the information from Jamie E. Hanrahan's paper in the
  64. Fall 1990 DECUS Symposium, and from Managing UUCP and Usenet by Tim
  65. O'Reilly and Grace Todino (with contributions by several other
  66. people).  The latter includes most of the former, and is published by
  67.         O'Reilly & Associates, Inc.
  68.         103 Morris Street, Suite A
  69.         Sebastopol, CA 95472
  70. It is currently in its tenth edition.  The ISBN number is
  71. 0-937175-93-5.
  72.  
  73. Some information is originally due to a Usenet article by Chuck
  74. Wegrzyn.  The information on execution files comes partially from
  75. Peter Honeyman.  The information on the 'g' protocol comes partially
  76. from a paper by G.L. Chesson of Bell Laboratories, partially from
  77. Jamie E. Hanrahan's paper, and partially from source code by John
  78. Gilmore.  The information on the 'f' protocol comes from the source
  79. code by Piet Berteema.  The information on the 't' protocol comes from
  80. the source code by Rick Adams.  The information on the 'e' protocol
  81. comes from a Usenet article by Matthias Urlichs.  The information on
  82. the 'd' protocol comes from Jonathan Clark, who also supplied
  83. information about QFT.  The FSUUCP information comes straight from
  84. Christopher J. Ambler.
  85.  
  86. Although there are few books about UUCP, there are many about networks
  87. and protocols in general.  I recommend two non-technical books which
  88. describe the sorts of things that are available on the network: ``The
  89. Whole Internet,'' by Ed Krol, and ``Zen and the Art of the Internet,''
  90. by Brendan P. Kehoe.  Good technical discussions of networking issues
  91. can be found in ``Internetworking with TCP/IP,'' by Douglas E. Comer
  92. and David L. Stevens and in ``Design and Validation of Computer
  93. Protocols'' by Gerard J. Holzmann.
  94.  
  95. ------------------------------
  96.  
  97. From: alarm
  98. Subject: What does "alarm" mean in debugging output?
  99.  
  100. The debugging output of many versions of UUCP (but not Taylor UUCP)
  101. will include messages like
  102.     alarm 1
  103. or
  104.     pkcget: alarm 1
  105.  
  106. This message means that the UUCP package has timed out while waiting
  107. for some sort of response from the remote system.  This normally
  108. indicates some sort of connection problem.  For example, the modems
  109. might have lost their connection, or perhaps one of the modems will
  110. not transmit the XON and XOFF characters, or perhaps one side or the
  111. other is dropping characters.  It can also mean that the packages
  112. disagree about some aspect of the UUCP protocol, although this is less
  113. common.
  114.  
  115. Using the information in the rest of this posting, you should be able
  116. to figure out what type of data your UUCP was expecting to receive.
  117. This may give some indication as to exactly what the problem is.  It
  118. is difficult to be more specific, since there are many possiblities.
  119.  
  120. ------------------------------
  121.  
  122. From: UUCP-grades
  123. Subject: What are UUCP grades?
  124.  
  125. Modern UUCP packages support grades for each command.  The grades
  126. generally range from 'A' (the highest) to 'Z' followed by 'a' to 'z'.
  127. Some UUCP packages also support '0' to '9' before 'A'.  Some UUCP
  128. packages may permit any ASCII character as a grade.
  129.  
  130. On Unix, these grades are encoded in the name of the command file.  A
  131. command file name generally has the form
  132.     C.nnnngssss
  133. where nnnn is the remote system name for which the command is queued,
  134. g is a single character grade, and ssss is a four character sequence
  135. number.  For example, a command file created for the system ``airs''
  136. at grade 'Z' might be named
  137.     C.airsZ2551
  138.  
  139. The remote system name will be truncated to seven characters, to
  140. ensure that the command file name will fit in the 14 character file
  141. name limit of the traditional Unix file system.  UUCP packages which
  142. have no other means of distinguishing which command files are intended
  143. for which systems thus require all systems they connect to to have
  144. names that are unique in the first seven characters.  Some UUCP
  145. packages use a variant of this format which truncates the system name
  146. to six characters.  HDB and Taylor UUCP use a different spool
  147. directory format, which allows up to fourteen characters to be used
  148. for each system name.
  149.  
  150. The sequence number in the command file name may be a decimal integer,
  151. or it may be a hexadecimal integer, or it may contain any alphanumeric
  152. character.  Different UUCP packages are different.
  153.  
  154. FSUUCP (a DOS based UUCP and news package) uses up to 8 characters for
  155. file names in the spool (this is a DOS file name limitation; actually,
  156. with the extension, 11 characters are available, but FSUUCP reserves
  157. that for future use).  FSUUCP defaults mail to grade D, and news to
  158. grade N, except that when the grade of incoming mail can be
  159. determined, that grade is preserved if the mail is forwarded to
  160. another system.  Mail and news are currently the only 2 types of
  161. transfers supported.  The default grades may be changed by editing
  162. the MAIL.RC file for mail, or the FSUUCP.CFG file for news.
  163.  
  164. I do not know how command grades are handled in other non-Unix UUCP
  165. packages.
  166.  
  167. Modern UUCP packages allow you to restrict file transfer by grade
  168. depending on the time of day.  Typically this is done with a line in
  169. the Systems (or L.sys) file like this:
  170.     airs Any/Z,Any2305-0855 ...
  171. This allows grades 'Z' and above to be transferred at any time.  Lower
  172. grades may only be transferred at night.  I believe that this grade
  173. restriction applies to local commands as well as to remote commands,
  174. but I am not sure.  It may only apply if the UUCP package places the
  175. call, not if it is called by the remote system.  Taylor UUCP can use
  176. the ``timegrade'' and ``call-timegrade'' commands to achieve the same
  177. effect (and supports the above format when reading Systems or L.sys).
  178.  
  179. This sort of grade restriction is most useful if you know what grades
  180. are being used at the remote site.  The default grades used depend on
  181. the UUCP package.  Generally uucp and uux have different defaults.  A
  182. particular grade can be specified with the -g option to uucp or uux.
  183. For example, to request execution of rnews on airs with grade 'd', you
  184. might use something like
  185.     uux -gd - airs!rnews <article
  186.  
  187. Uunet queues up mail at grade 'C', but increases the grade based on
  188. the size.  News is queued at grade 'd', and file transfers at grade
  189. 'n'.  The example above would allow mail (below some large size) to be
  190. received at any time, but would only permit news to be transferred at
  191. night.
  192.  
  193. ------------------------------
  194.  
  195. From: UUCP-lock-file
  196. Subject: What is the format of a UUCP lock file?
  197.  
  198. This discussion applies only to Unix.  I have no idea how UUCP locks
  199. ports on other systems.
  200.  
  201. UUCP creates files to lock serial ports and systems.  On most if not
  202. all systems these same lock files are also used by cu to coordinate
  203. access to serial ports.  On some systems getty also uses these lock
  204. files, often under the name uugetty.
  205.  
  206. The lock file normally contains the process ID of the locking process.
  207. This makes it easy to determine whether a lock is still valid.  The
  208. algorithm is to create a temporary file and then link it to the name
  209. that must be locked.  If the link fails because a file with that name
  210. already exists, the existing file is read to get the process ID.  If
  211. the process still exists, the lock attempt fails.  Otherwise the lock
  212. file is deleted and the locking algorithm is retried.
  213.  
  214. Older UUCP packages put the lock files in the main UUCP spool
  215. directory, /usr/spool/uucp.  HDB UUCP generally puts the lock files in
  216. a directory of their own, usually /usr/spool/locks or /etc/locks.
  217.  
  218. The original UUCP lock file format encodes the process ID as a four
  219. byte binary number.  The order of the bytes is host-dependent.  HDB
  220. UUCP stores the process ID as a ten byte ASCII decimal number, with a
  221. trailing newline.  For example, if process 1570 holds a lock file, it
  222. would contain the eleven characters space, space, space, space, space,
  223. space, one, five, seven, zero, newline.  Some versions of UUCP add a
  224. second line indicating which program created the lock (uucp, cu, or
  225. getty/uugetty).  I have also seen a third type of UUCP lock file which
  226. does not contain the process ID at all.
  227.  
  228. The name of the lock file is traditionally "LCK.." followed by the
  229. base name of the device.  For example, to lock /dev/ttyd0 the file
  230. LCK..ttyd0 would be created.  On SCO Unix, the lock file name is
  231. always forced to lower case even if the device name has upper case
  232. letters.
  233.  
  234. System V Release 4 UUCP names the lock file using the major and minor
  235. device numbers rather than the device name.  The file is named
  236. LK.XXX.YYY.ZZZ, where XXX, YYY and ZZZ are all three digit decimal
  237. numbers.  XXX is the major device number of the device holding the
  238. directory holding the device file (e.g., /dev).  YYY is the major
  239. device number of the device file itself.  ZZZ is the minor device
  240. number of the device file itself.  If s holds the result of passing
  241. the device to the stat system call (e.g., stat ("/dev/ttyd0", &s)),
  242. the following line of C code will print out the corresponding lock
  243. file name:
  244.     printf ("LK.%03d.%03d.%03d", major (s.st_dev),
  245.             major (s.st_rdev), minor (s.st_rdev));
  246. The advantage of this system is that even if there are several links
  247. to the same device, they will all use the same lock file name.
  248.  
  249. ------------------------------
  250.  
  251. From: X-file
  252. Subject: What is the format of a UUCP X.* files?
  253.  
  254. UUCP X.* files control program execution.  They are created by uux.
  255. They are transferred between computers just like any other file.  The
  256. uuxqt daemon reads them to figure out how to execute the job requested
  257. by uux.
  258.  
  259. An X.* file is simply a text file.  The first character of each line
  260. is a command, and the remainder of the line supplies arguments.  The
  261. following commands are defined:
  262.     C command
  263.         This gives the command to execute, including the program and
  264.         all arguments.  For example,
  265.             C rmail ian@airs.com
  266.     U user system
  267.         This names the user who requested the command, and the system
  268.         from which the request came.
  269.     I standard-input
  270.         This names the file from which standard input is taken.  If no
  271.         standard input file is given, the standard input will probably
  272.         be attached to /dev/null.  If the standard input file is not
  273.         from the system on which the execution is to occur, it will
  274.         also appear in an F command.
  275.     O standard-output [ system ]
  276.         This names the standard output file.  The optional second
  277.         argument names the system to which the file should be sent.
  278.         If there is no second argument, the file should be created on
  279.         the executing system.
  280.     F required-file [ filename-to-use ]
  281.         The F command can appear multiple times.  Each F command names
  282.         a file which must exist before the execution can proceed.
  283.         This will usually be a file which is transferred from the
  284.         system on which uux was executed, but it can also be a file
  285.         from the local system or some other system.  If the file is
  286.         not from the local system, then the command will usually name
  287.         a file in the spool directory.  If the optional second
  288.         argument appears, then the file should be copied to the
  289.         execution directory under that name.  This is necessary for
  290.         any file other than the standard input file.  If the standard
  291.         input file is not from the local system, it will appear in
  292.         both an F command and an I command.
  293.     R requestor-address
  294.         This is the address to which mail about the job should be
  295.         sent.  It is relative to the system named in the U command.
  296.         If the R command does not appear, then mail is sent to the
  297.         user named in the U command.
  298.     Z
  299.         This command takes no arguments.  It means that a mail message
  300.         should be sent if the command failed.  This is the default
  301.         behaviour for most modern UUCP packages, and for them the Z
  302.         command does not actually do anything.
  303.     N
  304.         This command takes no arguments.  It means that no mail
  305.         message should be sent, even if the command failed.
  306.     n
  307.         This command takes no arguments.  It means that a mail message
  308.         should be sent if the command succeeded.  Normally a message
  309.         is sent only if the command failed.
  310.     B
  311.         This command takes no arguments.  It means that the standard
  312.         input should be returned with any error message.  This can be
  313.         useful in cases where the input would otherwise be lost.
  314.     e
  315.         This command takes no arguments.  It means that the command
  316.         should be processed with /bin/sh.  For some packages this is
  317.         the default anyhow.  Most packages will refuse to execute
  318.         complex commands or commands containing wildcards, because of
  319.         the security holes this opens.
  320.     E
  321.         This command takes no arguments.  It means that the command
  322.         should be processed with the execve system call.  For some
  323.         packages this is the default anyhow.
  324.     M status-file
  325.         This command means that instead of mailing a message, the
  326.         message should be copied to the named file on the system named
  327.         by the U command.
  328.     # comment
  329.         This command is ignored, as is any other unrecognized command.  
  330.  
  331. Here is an example.  Given the following command executed on system
  332. test1
  333.     uux - test2!cat - test2!~ian/bar !qux '>~/gorp'
  334. (this is only an example, as most UUCP systems will not permit the cat
  335. command to be executed) Taylor UUCP will produce the following X.
  336. file:
  337.     U ian test1
  338.     F D.test1N003r qux
  339.     O /usr/spool/uucppublic test1
  340.     F D.test1N003s
  341.     I D.test1N003s
  342.     C cat - ~ian/bar qux
  343. The standard input will be read into a file and then transferred to
  344. the file D.test1N003s on system test2, and the file qux will be
  345. transferred to D.test1N003r on system test2.  When the command is
  346. executed, the latter file will be copied to the execution directory
  347. under the name qux.  Note that since the file ~ian/bar is already on
  348. the execution system, no action need be taken for it.  The standard
  349. output will be collected in a file, then copied to the directory
  350. /usr/spool/uucppublic on the system test1.
  351.  
  352. ------------------------------
  353.  
  354. From: UUCP-protocol
  355. Subject: What is the UUCP protocol?
  356.  
  357. The UUCP protocol is a conversation between two UUCP packages.  A UUCP
  358. conversation consists of three parts: an initial handshake, a series
  359. of file transfer requests, and a final handshake.
  360.  
  361. Before the initial handshake, the caller will usually have logged in
  362. the called machine and somehow started the UUCP package there.  On
  363. Unix this is normally done by setting the shell of the login name used
  364. to /usr/lib/uucp/uucico.
  365.  
  366. All messages in the initial handshake begin with a ^P (a byte with the
  367. octal value \020) and end with a null byte (\000).  A few systems end
  368. these messages with a line feed character (\012) instead of a null
  369. byte; the examples below assume a null byte is being used.
  370.  
  371. Some options below are supported by QFT, which stands for Queued File
  372. Transfer, and is (or was) an internal Bell Labs version of UUCP.  Some
  373. are supported by FSUUCP, which is a DOS based UUCP and news package.
  374.  
  375. The initial handshake goes as follows.  It is begun by the called
  376. machine.
  377.  
  378. called: \020Shere=hostname\000
  379.     The hostname is the UUCP name of the called machine.  Older UUCP
  380.     packages do not output it, and simply send \020Shere\000.
  381.  
  382. caller: \020Shostname options\000
  383.     The hostname is the UUCP name of the calling machine.  The
  384.     following options may appear (or there may be none):
  385.         -QSEQ
  386.             Report sequence number for this conversation.  The
  387.             sequence number is stored at both sites, and incremented
  388.             after each call.  If there is a sequence number mismatch,
  389.             something has gone wrong (somebody may have broken
  390.             security by pretending to be one of the machines) and the
  391.             call is denied.  If the sequence number changes on one of
  392.             the machines, perhaps because of an attempted breakin or
  393.             because a disk backup was restored, the sequence numbers
  394.             on the two machines must be reconciled manually.  This is
  395.             not supported by FSUUCP.
  396.         -xLEVEL
  397.             Requests the called system to set its debugging level to
  398.             the specified value.  This is not supported by all
  399.             systems.
  400.         -pGRADE
  401.         -vgrade=GRADE
  402.             Requests the called system to only transfer files of the
  403.             specified grade or higher.  This is not supported by all
  404.             systems.  Some systems support -p, some support -vgrade=.
  405.         -R
  406.             Indicates that the calling UUCP understands how to restart
  407.             failed file transmissions.  Supported only by System V
  408.             Release 4 UUCP and QFT.
  409.         -ULIMIT
  410.             Reports the ulimit value of the calling UUCP.  The limit
  411.             is specified as a base 16 number in C notation (e.g.,
  412.             -U0x1000000).  This number is the number of 512 byte
  413.             blocks in the largest file which the calling UUCP can
  414.             create.  The called UUCP may not transfer a file larger
  415.             than this.  Supported only by System V Release 4 UUCP, QFT
  416.             and FSUUCP.  FSUUCP reports the lesser of the
  417.             available disk space on the spool directory drive and the
  418.             ulimit variable in FSUUCP.CFG.
  419.         -N
  420.             Indicates that the calling UUCP understands the Taylor
  421.             UUCP size limiting extensions.  Supported only by Taylor
  422.             UUCP and FSUUCP.
  423.  
  424. called: \020ROK\000
  425.     There are actually several possible responses.
  426.         ROK
  427.             The calling UUCP is acceptable, and the handshake proceeds
  428.             to the protocol negotiation.  Some options may also
  429.             appear; see below.
  430.         ROKN
  431.             The calling UUCP is acceptable, it specified -N, and the
  432.             called UUCP also understands the Taylor UUCP size limiting
  433.             extensions.  Supported only by Taylor UUCP and FSUUCP.
  434.         RLCK
  435.             The called UUCP already has a lock for the calling UUCP,
  436.             which normally indicates the two machines are already
  437.             communicating.
  438.         RCB
  439.             The called UUCP will call back.  This may be used to avoid
  440.             impostors (but only one machine out of each pair should
  441.             call back, or no conversation will ever begin).
  442.         RBADSEQ
  443.             The call sequence number is wrong (see the -Q discussion
  444.             above). 
  445.         RLOGIN
  446.             The calling UUCP is using the wrong login name.
  447.         RYou are unknown to me
  448.             The calling UUCP is not known to the called UUCP, and the
  449.             called UUCP does not permit connections from unknown
  450.             systems.  Some versions of UUCP just drop the line rather
  451.             than sending this message.
  452.  
  453.     If the response is ROK, the following options are supported by
  454.     System V Release 4 UUCP and QFT.
  455.         -R
  456.             The called UUCP knows how to restart failed file
  457.             transmissions.
  458.         -ULIMIT
  459.             Reports the ulimit value of the called UUCP.  The limit is
  460.             specified as a base 16 number in C notation.  This number
  461.             is the number of 512 byte blocks in the largest file which
  462.             the called UUCP can create.  The calling UUCP may not send
  463.             a file larger than this.  Also supported by FSUUCP.
  464.         -xLEVEL
  465.             I'm not sure just what this means.  It may request the
  466.             calling UUCP to set its debugging level to the specified
  467.             value.
  468.     If the response is not ROK (or ROKN) both sides hang up the phone,
  469.     abandoning the call.
  470.  
  471. called: \020Pprotocols\000
  472.     Note that the called UUCP outputs two strings in a row.  The
  473.     protocols string is a list of UUCP protocols supported by the
  474.     caller.  Each UUCP protocol has a single character name.  These
  475.     protocols are discussed in more detail later in this document.
  476.     For example, the called UUCP might send \020Pgf\000.
  477.  
  478. caller: \020Uprotocol\000
  479.     The calling UUCP selects which protocol to use out of the
  480.     protocols offered by the called UUCP.  If there are no mutually
  481.     supported protocols, the calling UUCP sends \020UN\000 and both
  482.     sides hang up the phone.  Otherwise the calling UUCP sends
  483.     something like \020Ug\000.
  484.  
  485. Most UUCP packages will consider each locally supported protocol in
  486. turn and select the first one supported by the called UUCP.  With some
  487. versions of HDB UUCP, this can be modified by giving a list of
  488. protocols after the device name in the Devices file or the Systems
  489. file.  For example, to select the 'e' protocol in Systems,
  490.     airs Any ACU,e ...
  491. or in Devices,
  492.     ACU,e ttyXX ...
  493. Taylor UUCP provides the ``protocol'' command which may be used either
  494. for a system or a port.
  495.  
  496. After the protocol has been selected and the initial handshake has been
  497. completed, both sides turn on the selected protocol.  For some
  498. protocols (notably 'g') a further handshake is done at this point.
  499.  
  500. Each protocol supports a method for sending a command to the remote
  501. system.  This method is used to transmit a series of commands between
  502. the two UUCP packages.  At all times, one package is the master and
  503. the other is the slave.  Initially, the calling UUCP is the master.
  504.  
  505. If a protocol error occurs during the exchange of commands, both sides
  506. move immediately to the final handshake.
  507.  
  508. The master will send one of four commands: S, R, X or H.
  509.  
  510. Any file name referred to below is either an absolute pathname
  511. beginning with "/", a public directory pathname beginning with "~/", a
  512. pathname relative to a user's home directory beginning with "~USER/",
  513. or a spool directory file name.  File names in the spool directory are
  514. not pathnames, but instead are converted to pathnames within the spool
  515. directory by UUCP.  They always begin with "C." (for a command file
  516. created by uucp or uux), "D." (for a data file created by uucp, uux or
  517. by an execution, or received from another system for an execution), or
  518. "X." (for an execution file created by uux or received from another
  519. system).
  520.  
  521. master: S FROM TO USER -OPTIONS TEMP MODE NOTIFY SIZE
  522.     The S and the - are literal characters.  This is a request by the
  523.     master to send a file to the slave.
  524.         FROM
  525.             The name of the file to send.  If the C option does not
  526.             appear in OPTIONS, the master will actually open and send
  527.             this file.  Otherwise the file has been copied to the
  528.             spool directory, where it is named TEMP.  The slave
  529.             ignores this field unless TO is a directory, in which case
  530.             the basename of FROM will be used as the file name.  If
  531.             FROM is a spool directory filename, it must be a data file
  532.             created for or by an execution, and must begin with "D.".
  533.         TO
  534.             The name to give the file on the slave.  If this field
  535.             names a directory the file is placed within that directory
  536.             with the basename of FROM.  A name ending in `/' is taken
  537.             to be a directory even if one does not already exist with
  538.             that name.  If TO begins with `X.', an execution file will
  539.             be created on the slave.  Otherwise, if TO begins with
  540.             `D.' it names a data file to be used by some execution
  541.             file.  Otherwise, TO should not be in the spool directory.
  542.         USER
  543.             The name of the user who requested the transfer.
  544.         OPTIONS
  545.             A list of options to control the transfer.  The following
  546.             options are defined (all options are single characters):
  547.                 C
  548.                     The file has been copied to the spool directory
  549.                     (the master should use TEMP rather than FROM).
  550.                 c
  551.                     The file has not been copied to the spool
  552.                     directory (this is the default).
  553.                 d
  554.                     The slave should create directories as necessary
  555.                     (this is the default).
  556.                 f
  557.                     The slave should not create directories if
  558.                     necessary, but should fail the transfer instead.
  559.                 m
  560.                     The master should send mail to USER when the
  561.                     transfer is complete (not supported by FSUUCP).
  562.                 n
  563.                     The slave should send mail to NOTIFY when the
  564.                     transfer is complete (not supported by FSUUCP).
  565.         TEMP
  566.             If the C option appears in OPTIONS, this names the file to
  567.             be sent.  Otherwise if FROM is in the spool directory,
  568.             TEMP is the same as FROM.  Otherwise TEMP may be a dummy
  569.             string, such as "D.0".  After the transfer has been
  570.             succesfully completed, the master will delete the file
  571.             TEMP.
  572.         MODE
  573.             This is an octal number giving the mode of the file on
  574.             MASTER.  If the file is not in the spool directory, the
  575.             slave will always create it with mode 0666, except that if
  576.             (MODE & 0111) is not zero (the file is executable), the
  577.             slave will create the file with mode 0777.  If the file is
  578.             in the spool directory, some UUCP packages will use the
  579.             algorithm above and some will always create the file with
  580.             mode 0600.  This field is not used by FSUUCP, since it is
  581.             meaningless on DOS.
  582.         NOTIFY
  583.             This field may not be present, and in any case is only
  584.             meaningful if the n option appears in OPTIONS.  If the n
  585.             option appears, then when the transfer is successfully
  586.             completed, the slave will send mail to NOTIFY, which must
  587.             be a legal mailing address on the slave.  If a SIZE field
  588.             will appear but the n option does not appear, NOTIFY will
  589.             always be present, typically as the string "dummy" or
  590.             simply a pair of double quotes.
  591.         SIZE
  592.             This field is only present when doing size negotiation,
  593.             with Taylor UUCP, SVR4 UUCP, QFT or FSUUCP.  It is the
  594.             size of the file in bytes.  SVR4 UUCP, QFT and FSUUCP send
  595.             the size in base 16 as 0x.... while Taylor UUCP sends the
  596.             size as a decimal integer (a later version of Taylor UUCP
  597.             will probably change to the SVR4 behaviour).
  598.  
  599.     The slave then responds with an S command response.
  600.         SY START
  601.             The slave is willing to accept the file, and file transfer
  602.             begins.  The START field will only be present when using
  603.             file restart.  It specifies the byte offset into the file
  604.             at which to start sending.  If this is a new file, START
  605.             will be 0x0.
  606.         SN2
  607.             The slave denies permission to transfer the file.  This
  608.             can mean that the destination directory may not be
  609.             accessed, or that no requests are permitted.  It implies
  610.             that the file transfer will never succeed.
  611.         SN4
  612.             The slave is unable to create the necessary temporary
  613.             file.  This implies that the file transfer might succeed
  614.             later.
  615.         SN6
  616.             This is only used by Taylor UUCP and FSUUCP size
  617.             negotiation.  It means that the slave considers the file
  618.             too large to transfer at the moment, but it may be
  619.             possible to transfer it at some other time.
  620.         SN7
  621.             This is only used by Taylor UUCP and FSUUCP size
  622.             negotiation.  It means that the slave considers the file
  623.             too large to ever transfer.
  624.         SN8
  625.             This is only used by Taylor UUCP.  It means that the file
  626.             was already received in a previous conversation.  This can
  627.             happen if the receive acknowledgement was lost after it
  628.             was sent by the receiver but before it was received by the
  629.             sender.
  630.  
  631.     If the slave responds with SY, a file transfer begins.  When the
  632.     file transfer is complete, the slave sends a C command response.
  633.         CY
  634.             The file transfer was successful.
  635.         CYM
  636.             The file transfer was successful, and the slave wishes to
  637.             become the master; the master should send an H command,
  638.             described below.
  639.         CN5
  640.             The temporary file could not be moved into the final
  641.             location.  This implies that the file transfer will never
  642.             succeed.
  643.  
  644.     After the C command response has been received (in the SY case) or
  645.     immediately (in an SN case) the master will send another command.
  646.  
  647. master: R FROM TO USER -OPTIONS SIZE
  648.     The R and the - are literal characters.  This is a request by the
  649.     master to receive a file from the slave.  I do not know how SVR4
  650.     UUCP or QFT implement file transfer restart in this case.
  651.         FROM
  652.             This is the name of the file on the slave which the master
  653.             wishes to receive.  It must not be in the spool directory,
  654.             and it may not contain any wildcards.
  655.         TO
  656.             This is the name of the file to create on the master.  I
  657.             do not believe that it can be a directory.  It may only be
  658.             in the spool directory if this file is being requested to
  659.             support an execution either on the master or on some
  660.             system other than the slave.
  661.         USER
  662.             The name of the user who requested the transfer.
  663.         OPTIONS
  664.             A list of options to control the transfer.  The following
  665.             options are defined (all options are single characters):
  666.                 d
  667.                     The master should create directories as necessary
  668.                     (this is the default).
  669.                 f
  670.                     The master should not create directories if
  671.                     necessary, but should fail the transfer instead.
  672.                 m
  673.                     The master should send mail to USER when the
  674.                     transfer is complete.
  675.         SIZE
  676.             This only appears if Taylor UUCP or FSUUCP size
  677.             negotiation is being used.  It specifies the largest file
  678.             which the master is prepared to accept (when using SVR4
  679.             UUCP or QFT, this was specified in the -U option during
  680.             the initial handshake).
  681.  
  682.     The slave then responds with an R command response.  FSUUCP does
  683.     not support R requests, and always responds with RN2.
  684.         RY MODE
  685.             The slave is willing to send the file, and file transfer
  686.             begins.  MODE is the octal mode of the file on the slave.
  687.             The master treats this just as the slave does the MODE
  688.             argument in the send command, q.v.
  689.         RN2
  690.             The slave is not willing to send the file, either because
  691.             it is not permitted or because the file does not exist.
  692.             This implies that the file request will never succeed.
  693.         RN6
  694.             This is only used by Taylor UUCP size negotiation.  It
  695.             means that the file is too large to send, either because
  696.             of the size limit specifies by the master or because the
  697.             slave considers it too large.  The file transfer might
  698.             succeed later, or it might not (this will be cleared up in
  699.             a later release of Taylor UUCP).
  700.  
  701.     If the slave responds with RY, a file transfer begins.  When the
  702.     file transfer is complete, the master sends a C command.  The
  703.     slave pretty much ignores this, although it may log it.
  704.         CY
  705.             The file transfer was successful.
  706.         CN5
  707.             The temporary file could not be moved into the final
  708.             location.
  709.  
  710.     After the C command response has been sent (in the RY case) or
  711.     immediately (in an RN case) the master will send another command.
  712.  
  713. master: X FROM TO USER -OPTIONS
  714.     The X and the - are literal characters.  This is a request by the
  715.     master to, in essence, execute uucp on the slave.  The slave
  716.     should execute "uucp FROM TO".
  717.         FROM
  718.             This is the name of the file or files on the slave which
  719.             the master wishes to transfer.  Any wildcards are expanded
  720.             on the slave.  If the master is requesting that the files
  721.             be transferred to itself, the request would normally
  722.             contain wildcard characters, since otherwise an `R'
  723.             command would suffice.  The master can also use this
  724.             command to request that the slave transfer files to a
  725.             third system.
  726.         TO
  727.             This is the name of the file or directory to which the
  728.             files should be transferred.  This will normally use a
  729.             UUCP name.  For example, if the master wishes to receive
  730.             the files itself, it would use "master!path".
  731.         USER
  732.             The name of the user who requested the transfer.
  733.         OPTIONS
  734.             A list of options to control the transfer.  It is not
  735.             clear which, if any, options are supported by most UUCP
  736.             packages.
  737.  
  738.     The slave then responds with an X command response.  FSUUCP does
  739.     not support X requests, and always responds with XN.
  740.         XY
  741.             The request was accepted, and the appropriate file
  742.             transfer commands have been queued up for later
  743.             processing.
  744.         XN
  745.             The request was denied.  No particular reason is given.
  746.  
  747.     In either case, the master will then send another command.
  748.  
  749. master: H
  750.     This is used by the master to hang up the connection.  The slave
  751.     will respond with an H command response.
  752.         HY
  753.             The slave agrees to hang up the connection.  In this case
  754.             the master sends another HY command.  In some UUCP
  755.             packages the slave will then send a third HY command.  At
  756.             this point the protocol is shut down, and the final
  757.             handshake is begun.
  758.         HN
  759.             The slave does not agree to hang up.  In this case the
  760.             master and the slave exchange roles.  The next command
  761.             will be sent by the former slave, which is the new master.
  762.             The roles may be reversed several times during a single
  763.             connection.
  764.  
  765. After the protocol has been shut down, the final handshake is
  766. performed.  This handshake has no real purpose, and some UUCP packages
  767. simply drop the connection rather than do it (in fact, some will drop
  768. the connection immediately after both sides agree to hangup, without
  769. even closing down the protocol).
  770.  
  771. caller: \020OOOOOO\000
  772. called: \020OOOOOOO\000
  773.  
  774. That is, the calling UUCP sends six O's and the called UUCP replies
  775. with seven O's.  Some UUCP packages always send six O's.
  776.  
  777. ------------------------------
  778.  
  779. From: UUCP-g
  780. Subject: What is the 'g' protocol?
  781.  
  782. The 'g' protocol is a packet based flow controlled error correcting
  783. protocol that requires an eight bit clear connection.  It is the
  784. original UUCP protocol, and is supported by all UUCP implementations.
  785. Many implementations of it are only able to support small window and
  786. packet sizes, specifically a window size of 3 and a packet size of 64
  787. bytes, but the protocol itself can support up to a window size of 7
  788. and a packet size of 4096 bytes.  Complaints about the inefficiency of
  789. the 'g' protocol generally refer to specific implementations, rather
  790. than to the correctly implemented protocol.
  791.  
  792. The 'g' protocol was originally designed for general packet drivers,
  793. and thus contains some features that are not used by UUCP, including
  794. an alternate data channel and the ability to renegotiate packet and
  795. window sizes during the communication session.
  796.  
  797. The 'g' protocol is spoofed by many Telebit modems.  When spoofing is
  798. in effect, each Telebit modem uses the 'g' protocol to communicate
  799. with the attached computer, but the data between the modems is sent
  800. using a Telebit proprietary error correcting protocol.  This allows
  801. for very high throughput over the Telebit connection, which, because
  802. it is half-duplex, would not normally be able to handle the 'g'
  803. protocol very well at all.
  804.  
  805. This discussion of the 'g' protocol explains how it works, but does
  806. not discuss useful error handling techniques.  Some discussion of this
  807. can be found in Jamie E. Hanrahan's paper, cited above.
  808.  
  809. All 'g' protocol communication is done with packets.  Each packet
  810. begins with a six byte header.  Control packets consist only of the
  811. header.  Data packets contain additional data.
  812.  
  813. The header is as follows:
  814.  
  815.     \020
  816.         Every packet begins with a ^P.
  817.     k (1 <= k <= 9)
  818.         The k value is always 9 for a control packet.  For a data
  819.         packet, the k value indicates how must data follows the six
  820.         byte header.  The amount of data is 2 ** (k + 4), where **
  821.         indicates exponentiation.  Thus a k value of 1 means 32 data
  822.         bytes and a k value of 8 means 4096 data bytes.  The k value
  823.         for a data packet must be between 1 and 8 inclusive.
  824.     checksum low byte
  825.     checksum high byte
  826.         The checksum value is described below.
  827.     control byte
  828.         The control packet indicates the type of packet, and is
  829.         described below.
  830.     xor byte
  831.         This byte is the xor of k, the checksum low byte, the checksum
  832.         high byte and the control byte (i.e., the second, third,
  833.         fourth and fifth header bytes).  It is used to ensure that the
  834.         header data is valid.
  835.  
  836. The control byte in the header is composed of three bit fields,
  837. referred to here as TT (two bits), XXX (three bits) and YYY (three
  838. bits).  The control is TTXXXYYY, or (TT << 6) + (XXX << 3) + YYY.
  839.  
  840. The TT field takes on the following values:
  841.     0
  842.         This is a control packet.  In this case the k byte in the
  843.         header must be 9.  The XXX field indicates the type of control
  844.         packet; these types are described below.
  845.     1
  846.         This is an alternate data channel packet.  This is not used by
  847.         UUCP.
  848.     2
  849.         This is a data packet, and the entire contents of the attached
  850.         data field (whose length is given by the k byte in the header)
  851.         are valid.  The XXX and YYY fields are described below.
  852.     3
  853.         This is a short data packet.  Let the length of the data field
  854.         (as given by the k byte in the header) be L.  Let the first
  855.         byte in the data field be B1.  If B1 is less than 128 (if the
  856.         most significant bit of B1 is 0), then there are L - B1 valid
  857.         bytes of data in the data field, beginning with the second
  858.         byte.  If B1 >= 128, let B2 be the second byte in the data
  859.         field.  Then there are L - ((B1 & 0x7f) + (B2 << 7)) valid
  860.         bytes of data in the data field, beginning with the third
  861.         byte.  In all cases L bytes of data are sent (and all data
  862.         bytes participate in the checksum calculation) but some of the
  863.         trailing bytes may be dropped by the receiver.   The XXX and
  864.         YYY fields are described below.
  865.  
  866. In a data packet (short or not) the XXX field gives the sequence
  867. number of the packet.  Thus sequence numbers can range from 0 to 7,
  868. inclusive.  The YYY field gives the sequence number of the last
  869. correctly received packet.
  870.  
  871. Each communication direction uses a window which indicates how many
  872. unacknowledged packets may be transmitted before waiting for an
  873. acknowledgement.  The window may range from 1 to 7, and may be
  874. different in each direction. For example, if the window is 3 and the
  875. last packet acknowledged was packet number 6, packet numbers 7, 0 and
  876. 1 may be sent but the sender must wait for an acknowledgement before
  877. sending packet number 2.  This acknowledgement could come as the YYY
  878. field of a data packet or as the YYY field of a RJ or RR control
  879. packet (described below).
  880.  
  881. Each packet must be transmitted in order (the sender may not skip
  882. sequence numbers).  Each packet must be acknowledged, and each packet
  883. must be acknowledged in order.
  884.  
  885. In a control packet, the XXX field takes on the following values:
  886.     1 CLOSE
  887.         The connection should be closed immediately.  This is
  888.         typically sent when one side has seen too many errors and
  889.         wants to give up.  It is also sent when shutting down the
  890.         protocol.  If an unexpected CLOSE packet is received, a CLOSE
  891.         packet should be sent in reply and the 'g' protocol should
  892.         halt, causing UUCP to enter the final handshake.
  893.     2 RJ or NAK
  894.         The last packet was not received correctly.  The YYY field
  895.         contains the sequence number of the last correctly received
  896.         packet.
  897.     3 SRJ
  898.         Selective reject.  The YYY field contains the sequence number
  899.         of a packet that was not received correctly, and should be
  900.         retransmitted.  This is not used by UUCP, and most
  901.         implementations will not recognize it.
  902.     4 RR or ACK
  903.         Packet acknowledgement.  The YYY field contains the sequence
  904.         number of the last correctly received packet.
  905.     5 INITC
  906.         Third initialization packet.  The YYY field contains the
  907.         maximum window size to use.
  908.     6 INITB
  909.         Second initialization packet.  The YYY field contains the
  910.         packet size to use.  It requests a size of 2 ** (YYY + 5).
  911.         Note that this is not the same coding used for the k byte in
  912.         the packet header (it is 1 less).  Most UUCP implementations
  913.         that request a packet size larger than 64 bytes can handle any
  914.         packet size up to that specified.
  915.     7 INITA
  916.         First initialization packet.  The YYY field contains the
  917.         maximum window size to use.
  918.  
  919. The checksum of a control packet is simply 0xaaaa - the control byte.
  920.  
  921. The checksum of a data packet is 0xaaaa - (CHECK ^ the control byte),
  922. where ^ denotes exclusive or, and CHECK is the result of the following
  923. routine as run on the contents of the data field (every byte in the
  924. data field participates in the checksum, even for a short data
  925. packet).  Below is the routine used by Taylor UUCP; it is a slightly
  926. modified version of a routine which John Gilmore patched from G.L.
  927. Chesson's original paper.  The z argument points to the data and the c
  928. argument indicates how much data there is.
  929.  
  930. int
  931. igchecksum (z, c)
  932.      register const char *z;
  933.      register int c;
  934. {
  935.   register unsigned int ichk1, ichk2;
  936.  
  937.   ichk1 = 0xffff;
  938.   ichk2 = 0;
  939.  
  940.   do
  941.     {
  942.       register unsigned int b;
  943.  
  944.       /* Rotate ichk1 left.  */
  945.       if ((ichk1 & 0x8000) == 0)
  946.         ichk1 <<= 1;
  947.       else
  948.         {
  949.           ichk1 <<= 1;
  950.           ++ichk1;
  951.         }
  952.  
  953.       /* Add the next character to ichk1.  */
  954.       b = *z++ & 0xff;
  955.       ichk1 += b;
  956.  
  957.       /* Add ichk1 xor the character position in the buffer counting from
  958.          the back to ichk2.  */
  959.       ichk2 += ichk1 ^ c;
  960.  
  961.       /* If the character was zero, or adding it to ichk1 caused an
  962.          overflow, xor ichk2 to ichk1.  */
  963.       if (b == 0 || (ichk1 & 0xffff) < b)
  964.         ichk1 ^= ichk2;
  965.     }
  966.   while (--c > 0);
  967.  
  968.   return ichk1 & 0xffff;
  969. }
  970.  
  971. When the 'g' protocol is started, the calling UUCP sends an INITA
  972. control packet with the window size it wishes the called UUCP to use.
  973. The called UUCP responds with an INITA packet with the window size it
  974. wishes the calling UUCP to use.  Pairs of INITB and INITC packets are
  975. then similarly exchanged.  When these exchanges are completed, the
  976. protocol is considered to have been started.
  977.  
  978. When a UUCP package transmits a command, it sends one or more data
  979. packets.  All the data packets will normally be complete, although
  980. some UUCP packages may send the last one as a short packet.  The
  981. command string is sent with a trailing null byte, to let the receiving
  982. package know when the command is finished.  Some UUCP packages require
  983. the last byte of the last packet sent to be null, even if the command
  984. ends earlier in the packet.  Some packages may require all the
  985. trailing bytes in the last packet to be null, but I have not confirmed
  986. this.
  987.  
  988. When a UUCP package sends a file, it will send a sequence of data
  989. packets.  The end of the file is signalled by a short data packet
  990. containing zero valid bytes (it will normally be preceeded by a short
  991. data packet containing the last few bytes in the file).
  992.  
  993. Note that the sequence numbers cover the entire communication session,
  994. including both command and file data.
  995.  
  996. When the protocol is shut down, each UUCP package sends a CLOSE
  997. control packet.
  998.  
  999. ------------------------------
  1000.  
  1001. From: UUCP-f
  1002. Subject: What is the 'f' protocol?
  1003.  
  1004. The 'f' protocol is a seven bit protocol which checksums an entire
  1005. file at a time.  It only uses the characters between \040 and \176
  1006. (ASCII space and ~) inclusive as well as the carriage return
  1007. character.  It can be very efficient for transferring text only data,
  1008. but it is very inefficient at transferring eight bit data (such as
  1009. compressed news).  It is not flow controlled, and the checksum is
  1010. fairly insecure over large files, so using it over a serial connection
  1011. requires handshaking (XON/XOFF can be used) and error correcting
  1012. modems.  Some people think it should not be used even under those
  1013. circumstances.
  1014.  
  1015. I believe the 'f' protocol originated in BSD versions of UUCP.  It was
  1016. originally intended for transmission over X.25 PAD links.
  1017.  
  1018. The 'f' protocol has no startup or finish protocol.  However, both
  1019. sides typically sleep for a couple of seconds before starting up,
  1020. because they switch the terminal into XON/XOFF mode and want to allow
  1021. the changes to settle before beginning transmission.
  1022.  
  1023. When a UUCP package transmits a command, it simply sends a string
  1024. terminated by a carriage return.
  1025.  
  1026. When a UUCP package transmits a file, each byte b of the file is
  1027. translated according to the following table:
  1028.  
  1029.        0 <= b <=  037: 0172, b + 0100 (0100 to 0137)
  1030.      040 <= b <= 0171:       b        ( 040 to 0171)
  1031.     0172 <= b <= 0177: 0173, b - 0100 ( 072 to  077)
  1032.     0200 <= b <= 0237: 0174, b - 0100 (0100 to 0137)
  1033.     0240 <= b <= 0371: 0175, b - 0200 ( 040 to 0171)
  1034.     0372 <= b <= 0377: 0176, b - 0300 ( 072 to  077)
  1035.  
  1036. That is, a byte between \040 and \171 inclusive is transmitted as is,
  1037. and all other bytes are prefixed and modified as shown.
  1038.  
  1039. When all the file data is sent, a seven byte sequence is sent: two
  1040. bytes of \176 followed by four ASCII bytes of the checksum as printed
  1041. in base 16 followed by a carriage return.  For example, if the
  1042. checksum was 0x1234, this would be sent: "\176\1761234\r".
  1043.  
  1044. The checksum is initialized to 0xffff.  For each byte that is sent it
  1045. is modified as follows (where b is the byte before it has been
  1046. transformed as described above):
  1047.  
  1048.       /* Rotate the checksum left.  */
  1049.       if ((ichk & 0x8000) == 0)
  1050.         ichk <<= 1;
  1051.       else
  1052.         {
  1053.           ichk <<= 1;
  1054.           ++ichk;
  1055.         }
  1056.  
  1057.       /* Add the next byte into the checksum.  */
  1058.       ichk += b;
  1059.  
  1060. When the receiving UUCP sees the checksum, it compares it against its
  1061. own calculated checksum and replies with a single character followed
  1062. by a carriage return.
  1063.     G
  1064.         The file was received correctly.
  1065.     R
  1066.         The checksum did not match, and the file should be resent from
  1067.         the beginning.
  1068.     Q
  1069.         The checksum did not match, but too many retries have occurred
  1070.         and the communication session should be abandoned.
  1071.  
  1072. The sending UUCP checks the returned character and acts accordingly.
  1073.  
  1074. ------------------------------
  1075.  
  1076. From: UUCP-t
  1077. Subject: What is the 't' protocol?
  1078.  
  1079. The 't' protocol is intended for use on links which provide reliable
  1080. end-to-end connections, such as TCP.  It does no error checking or
  1081. flow control, and requires an eight bit clear channel.
  1082.  
  1083. I believe the 't' protocol originated in BSD versions of UUCP.
  1084.  
  1085. When a UUCP package transmits a command, it first gets the length of
  1086. the command string, C.  It then sends ((C / 512) + 1) * 512 bytes (the
  1087. smallest multiple of 512 which can hold C bytes plus a null byte)
  1088. consisting of the command string itself followed by trailing null
  1089. bytes.
  1090.  
  1091. When a UUCP package sends a file, it sends it in blocks.  Each block
  1092. contains at most 1024 bytes of data.  Each block consists of four
  1093. bytes containing the amount of data in binary (most significant byte
  1094. first, the same format as used by the Unix function htonl) followed by
  1095. that amount of data.  The end of the file is signalled by a block
  1096. containing zero bytes of data.
  1097.  
  1098. ------------------------------
  1099.  
  1100. From: UUCP-e
  1101. Subject: What is the 'e' protocol?
  1102.  
  1103. The 'e' protocol is similar to the 't' protocol.  It does no flow
  1104. control or error checking and is intended for use over networks
  1105. providing reliable end-to-end connections, such as TCP.
  1106.  
  1107. The 'e' protocol originated in versions of HDB UUCP.
  1108.  
  1109. When a UUCP package transmits a command, it simply sends the command
  1110. as an ASCII string terminated by a null byte.
  1111.  
  1112. When a UUCP package transmits a file, it sends the complete size of
  1113. the file as an ASCII decimal number.  The ASCII string is padded out
  1114. to 20 bytes with null bytes (i.e. if the file is 1000 bytes long, it
  1115. sends "1000\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0").  It then sends the
  1116. entire file.
  1117.  
  1118. ------------------------------
  1119.  
  1120. From: UUCP-G
  1121. Subject: What is the 'G' protocol?
  1122.  
  1123. The 'G' protocol is used by SVR4 UUCP.  It is identical to the 'g'
  1124. protocol, except that it is possible to modify the window and packet
  1125. sizes.  The SVR4 implementation of the 'g' protocol reportedly is
  1126. fixed at a packet size of 64 and a window size of 7.  Supposedly SVR4
  1127. chose to implement a new protocol using a new letter to avoid any
  1128. potential incompatibilities when using different packet or window
  1129. sizes.
  1130.  
  1131. Most implementations of the 'g' protocol that accept packets larger
  1132. than 64 bytes will also accept packets smaller than whatever they
  1133. requested in the INITB packet.  The SVR4 'G' implementation is an
  1134. exception; it will only accept packets of precisely the size it
  1135. requests in the INITB packet.
  1136.  
  1137. ------------------------------
  1138.  
  1139. From: UUCP-x
  1140. Subject: What is the 'x' protocol?
  1141.  
  1142. The 'x' protocol is used in Europe (and probably elsewhere) with
  1143. machines that contain an builtin X.25 card and can send eight bit data
  1144. transparently across X.25 circuits, without interference from the X.28
  1145. or X.29 layers.  The protocol sends packets of 512 bytes, and relies
  1146. on a write of zero bytes being read as zero bytes without stopping
  1147. communication.  It originally appeared in some version of HDB UUCP.
  1148.  
  1149. ------------------------------
  1150.  
  1151. From: UUCP-d
  1152. Subject: What is the 'd' protocol?
  1153.  
  1154. This is apparently used for DataKit muxhost (not RS-232) connections.
  1155. No file size is sent.  When a file has been completely transferred, a
  1156. write of zero bytes is done; this must be read as zero bytes on the
  1157. other end.
  1158.  
  1159. ------------------------------
  1160.  
  1161. From: UUCP-h
  1162. Subject: What is the 'h' protocol?
  1163.  
  1164. This is apparently used in some places with HST modems.  It does no
  1165. error checking, and is not that different from the 't' protocol.  I
  1166. don't know the details.
  1167.  
  1168. ------------------------------
  1169.  
  1170. From: Thanks
  1171. Subject: Thanks
  1172.  
  1173. Besides the papers and information acknowledged at the top of this
  1174. article, the following people have contributed help, advice,
  1175. suggestions and information:
  1176.     Earle Ake 513-429-6500 <ake@Dayton.SAIC.COM>
  1177.     cambler@nike.calpoly.edu (Christopher J. Ambler)
  1178.     jhc@iscp.bellcore.com (Jonathan Clark)
  1179.     celit!billd@UCSD.EDU (Bill Davidson)
  1180.     erik@pdnfido.fidonet.org
  1181.     Matthew Farwell <dylan@ibmpcug.co.uk>
  1182.     "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
  1183.     "David J. MacKenzie" <djm@eng.umd.edu>
  1184.     jum@helios.de (Jens-Uwe Mager)
  1185.     david nugent <david@csource.oz.au>
  1186.     Stephen.Page@prg.oxford.ac.uk
  1187.     joey@tessi.UUCP (Joey Pruett)
  1188.     James Revell <revell@uunet.uu.net>
  1189.     Larry Rosenman <ler@lerami.lerctr.org>
  1190.     Rich Salz <rsalz@bbn.com>
  1191.     kls@ditka.Chicago.COM (Karl Swartz)
  1192.     Dima Volodin <dvv@hq.demos.su>
  1193.     jon@console.ais.org (Jon Zeeff)
  1194.  
  1195. ------------------------------
  1196.  
  1197. End of UUCP Internals Frequently Asked Questions
  1198. ******************************
  1199. -- 
  1200. Ian Taylor | ian@airs.com | First to identify quote wins free e-mail message:
  1201. ``Things are either isolated units, or they form one inseparable whole.  If
  1202.   that whole be God, then all is well; but if aimless chance, at least you
  1203.   need not be aimless also.''
  1204.